const mongoose = require('mongoose');
materializedPlugin = require('mongoose-materialized');

var CateSchema = new mongoose.Schema({
    type:Number,
    text:String,
    parentId: mongoose.Schema.ObjectId
});
CateSchema.plugin(materializedPlugin);

//var Cate = mongoose.model('Model',  CateSchema);
module.exports=mongoose.model('Cate',CateSchema);
